package com.zhuojy.equity.mall.admin.common.entity.po.car;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * (TCarEtc)表实体类
 *
 * @author makejava
 * @since 2024-04-11 20:42:32
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("t_car_etc")
public class TCarEtcPO implements Serializable {

    private static final long serialVersionUID = 8900850883554658470L;
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
    * 0存储卡 1记账卡
    */
    private String etcType;

    /**
    * 卡号
    */
    private Integer etcId;

    /**
    * 车辆
    */
    private Integer etcNumber;

    /**
    * 余额
    */
    private String etcMoney;

    /**
    * 添加时间
    */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date etcTime;
    /**
     * 车牌号
     */
    @TableField(exist = false)
    private String carNumber;

}
